<script>
	export default {
		globalData:{
			source:uni.getSystemInfoSync().uniPlatform,
		},
		onLaunch: function() {
			console.log('App Launch')
			//#ifdef APP-PLUS || H5
				//配置顶部导航栏高度
				uni.setStorageSync('nowTabHeight', 85)
				
				// this.refreshToken() // APP刷新token
			//#endif
			
			//#ifdef MP-WEIXIN || MP-ALIPAY
			
			//配置顶部导航栏高度 适配小程序
			uni.setStorageSync('nowTabHeight', uni.getMenuButtonBoundingClientRect().top + uni.getMenuButtonBoundingClientRect()
				.height + 25)
			uni.setStorageSync('nowTab', uni.getMenuButtonBoundingClientRect())
			//#endif	
			const accountInfo = uni.getAccountInfoSync();
			console.log(accountInfo.miniProgram.appId); // 小程序 appId
			console.log(accountInfo); // 插件 appId
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style>
	/*每个页面公共css */
	
	/* 以下全局样式 */
	.flex-jsb-alc {
		display: flex;
		justify-content: space-between;
		align-items: center;
	}
	.flex-alc {
		display: flex;
		align-items: center;
	}
	/* 以上全局样式 */
</style>
<style lang="scss">
	@import "./uni_modules/vk-uview-ui/index.scss";
</style>